package persistence;

public class PersistenceFactory {

    public static ConversationDAO getConversationDAO(String persistenceMechanism) {
        switch (persistenceMechanism) {
            case "file":
                return null;
            case "jdbc":
                return ConversationDAOJDBC.getInstance();
            default:
                return null;
        }
    }

    public static UserDAO getUserDAO(String persistenceMechanism) {
        switch (persistenceMechanism) {
            case "file":
                return null;
            case "jdbc":
                return UserDAOJDBC.getInstance();
            default:
                return null;
        }
    }
}
